package dev.blogmoon.cn.system.convert;

import dev.blogmoon.cn.system.entity.BizAccount;
import dev.blogmoon.cn.system.module.BizAccountDTO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

@Mapper
public interface BizAccountConvert {

    BizAccountConvert INSTANCE = Mappers.getMapper(BizAccountConvert.class);

    @Mapping(source = "id", target = "id")
    BizAccountDTO convertBizAccountDTO(BizAccount bizAccount);


    @Mapping(source = "id", target = "id")
    BizAccount convertBizAccount(BizAccountDTO bizAccountDTO);

}
